package com.sun.sundemo.controller;

import com.sun.sundemo.properties.AppProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhangquanwei
 * @version 1.0
 * @since 2025-01-24 10:26
 */

@RestController
@RequestMapping("/demo")
public class DemoController {
    @Autowired
    private AppProperties appProperties;

    @RequestMapping("/hello")
    public String hello() {
        return appProperties.getAppName()+appProperties.getAppTitle();
    }
}
